﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace 小菜扮靓第2版
{
    class Person
    {
        string _Name = string.Empty;
        List<Finery> finerys = new List<Finery>();

        public Person(string Name)
        {
            _Name = Name;
        }

        public void Wear(Finery finery)
        {
            finerys.Add(finery);
        }

        public void Show()
        {
            string strFinery = string.Empty;
            foreach (Finery finery in finerys)
            {
                strFinery += " "+finery.Show();
            }

            Console.WriteLine("身着 {0} 的 {1}",strFinery,_Name);
        }
    }
}
